/**
 * 创作者页面样式
 */

/* 基础布局 */
.creators-page {
  min-height: calc(100vh - 200px);
  background: var(--n-body-color);
}

.creators-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* 桌面端布局 */
.desktop-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.creators-filter-section {
  background: var(--n-card-color);
  border: 1px solid var(--n-border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.creators-main {
  flex: 1;
  min-height: 600px;
}

/* 移动端布局 */
.mobile-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-filter-section {
  background: var(--n-card-color);
  border: 1px solid var(--n-border-color);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mobile-content {
  flex: 1;
}

/* 创作者卡片网格 */
.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 0;
}

.creators-grid--mobile {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* 创作者卡片样式增强 */
.creator-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.creator-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.creator-card--featured {
  border: 2px solid var(--n-color-primary);
  background: linear-gradient(135deg, var(--n-card-color) 0%, rgba(24, 160, 251, 0.02) 100%);
}

/* 筛选器样式增强 */
.creator-filter {
  background: transparent;
}

.creator-filter__search {
  margin-bottom: 16px;
}

.creator-filter__filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}

.creator-filter__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.creator-filter__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--n-text-color);
  margin-bottom: 4px;
}

.creator-filter__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.creator-filter__quick-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--n-border-color);
  margin-top: 16px;
}

.creator-filter__quick-label {
  font-size: 13px;
  color: var(--n-text-color-2);
  white-space: nowrap;
  margin-right: 8px;
}

/* 列表视图样式 */
.creator-list-table {
  background: var(--n-card-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 分页样式 */
.creator-pagination {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  margin-top: 24px;
}

/* 加载状态 */
.creator-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background: var(--n-card-color);
  border-radius: 12px;
  border: 1px solid var(--n-border-color);
}

/* 空状态 */
.creator-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background: var(--n-card-color);
  border-radius: 12px;
  border: 1px solid var(--n-border-color);
}

/* 创作者详情抽屉样式 */
.creator-detail-drawer {
  background: var(--n-body-color);
}

.creator-detail-drawer .n-drawer-content {
  background: var(--n-body-color);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .creators-content {
    max-width: 100%;
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .creators-page {
    padding: 0 12px;
  }

  .creators-content {
    padding: 0;
  }

  .desktop-layout {
    display: none;
  }

  .mobile-layout {
    display: flex;
  }

  .creators-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .creator-filter__filters {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .creator-filter__actions {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .creator-filter__quick-filters {
    display: none;
  }

  .creator-pagination {
    padding: 16px 0;
  }
}

@media (max-width: 480px) {
  .creators-page {
    padding: 0 8px;
  }

  .mobile-filter-section {
    padding: 12px;
  }

  .creator-filter__actions {
    flex-direction: column;
    gap: 8px;
  }

  .creators-grid {
    gap: 8px;
  }
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
  .creator-card--featured {
    background: linear-gradient(135deg, var(--n-card-color) 0%, rgba(24, 160, 251, 0.05) 100%);
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .creator-card {
    border-width: 2px;
  }
  
  .creators-filter-section,
  .mobile-filter-section {
    border-width: 2px;
  }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
  .creator-card {
    transition: none;
  }
  
  .creator-card:hover {
    transform: none;
  }
}

/* 打印样式 */
@media print {
  .creators-page {
    background: white;
    color: black;
  }
  
  .creator-card {
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
  }
  
  .creators-filter-section,
  .mobile-filter-section {
    display: none;
  }
}
